package impl

/**
本地内存存储
*/
var localMap = make(map[string]interface{})

type LocalStore struct{}

func (LocalStore) Get(key interface{}) (interface{}, error) {
	return localMap[key.(string)], nil
}

func (LocalStore) Set(key interface{}, value interface{}) error {
	localMap[key.(string)] = value
	return nil
}

func (LocalStore) Delete(key interface{}) error {
	delete(localMap, key.(string))
	return nil
}
